/**Filename: blockingQueue.h
 * Author(s): Vladimir Dudnic, Michael Groenier, Derek Fleener
 * Winter 2013 TCSS422
 * Project 2
 */
#ifndef BLOCKINGQUEUE_H
#define BLOCKINGQUEUE_H

#include"queue.h"
#include<pthread.h>
#include<stdlib.h>

typedef struct blockingQueue{
  pthread_mutex_t* l;
  queue* q;

}blockingQueue;

int blockingQueue_init(blockingQueue*);
int blockingQueue_enqueue(blockingQueue*, void*);
void* blockingQueue_dequeue(blockingQueue*);

#endif
